package edu.xust.utils;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {
    public static String  converDateFormat(String outFormat,Date currentTime) throws ParseException {
        DateFormat dfOut = new SimpleDateFormat(outFormat);
        return dfOut.format(currentTime);
    }
}
